//
//  APIResponse.h
//  ProjectDemo
//
//  Created by IOS3 on 2018/10/23.
//  Copyright © 2018 IOS3. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface APIResponse : NSObject

/** 错误 */
@property (nonatomic, strong) NSError *error;

/** 错误提示 */
@property (nonatomic, copy) NSString *errorMsg;

/** 错误码 */
@property (assign, nonatomic) NSInteger statusCode;

/** 响应头 */
@property (nonatomic, strong) NSMutableDictionary *headers;

/** 响应体 */
@property (nonatomic, strong) id responseObject;

/// 若finalResponse 为true,则已对链接成功的服务器返回数据进行过错误判断
@property (nonatomic, assign, getter=isFinalResponse) BOOL finalResponse;

@end

NS_ASSUME_NONNULL_END
